//
//  HomeModel.h
//  SleepingElf
//
//  Created by karong on 2023/10/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class HomeBanner;
@class HomeTab;
@interface HomeModel : NSObject
@property (nonatomic, strong) NSArray * bannerArray;
@property (nonatomic, strong) NSArray * tabArray;
@property (nonatomic, strong) NSArray * featuredArray;
@property (nonatomic, strong) NSArray * classifyArray;
@property (nonatomic, strong) NSArray * classifyListArray;
@property (nonatomic, strong) NSArray * lullabyArray;
@property (nonatomic, strong) NSArray * exclusiveArray;

- (NSInteger)rowWithSection:(NSInteger)section;
- (CGSize)sizeWithSection:(NSInteger)section;
- (NSString *)cellClassWithSection:(NSInteger)section;
- (UIEdgeInsets)insetWithSection:(NSInteger)section;
- (NSString *)headTitleWithSection:(NSInteger)section;
- (CGSize)headSizeWithSection:(NSInteger)section;
- (id)didSelectWithIndexPath:(NSIndexPath *)indexPath;
- (NSInteger)category_idWithSection:(NSInteger)section;
@end

@interface HomeBanner : NSObject
@property (nonatomic, assign) NSInteger id;
///名称
@property (nonatomic, strong) NSString * name;
///图片
@property (nonatomic, strong) NSString * image_url;
///跳转链接
@property (nonatomic, strong) NSString * url;
///1：站内；2：站外
@property (nonatomic, assign) NSInteger type;
@end

@interface HomeTab : NSObject
@property (nonatomic, assign) NSInteger id;
///标题
@property (nonatomic, strong) NSString * title;
///描述
@property (nonatomic, strong) NSString * describe;
///跳转1:小憩2：专属睡眠
@property (nonatomic, assign) NSInteger type;
///图标
@property (nonatomic, strong) NSString * icon;
@end

@interface HomeClassify : NSObject
@property (nonatomic, assign) NSInteger id;
///分类名
@property (nonatomic, strong) NSString * name;
///父ID
@property (nonatomic, assign) NSInteger parent_id;
///描述
@property (nonatomic, strong) NSString * describe;
///语言
@property (nonatomic, strong) NSString * lang;
///图片
@property (nonatomic, strong) NSString * image;
///分类子集（可能为空）
@property (nonatomic, strong) NSArray * children;
@end

NS_ASSUME_NONNULL_END
